    package com.michau.testitas.common.model.definition;

import com.michau.testitas.common.model.BaseEntity;

import javax.persistence.*;

/**
 * User: michau
 * Date: 1/9/13
 * Time: 8:55 PM
 */
@Entity
@Table(name = "testit_content")
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
@DiscriminatorColumn(name = "content_type")
public abstract class Content extends BaseEntity {

    @Lob
    @Column(name = "content")
    private byte[] content;

    public byte[] getContent() {
        return content;
    }

    public void setContent(byte[] content) {
        this.content = content;
    }
}
